home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / awt / Transparency.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  1.5 KB  |  50 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)Transparency.java    1.10 98/03/18
  3.  *
  4.  * Copyright 1997, 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt;
  16.  
  17. /**
  18.  * The <code>Transparency</code> interface defines the common transparency
  19.  * modes for implementing classes.
  20.  * @version 10 Feb 1997
  21.  */
  22. public interface Transparency {
  23.  
  24.     /**
  25.      * Represents image data that is guaranteed to be completely opaque,
  26.      * meaning that all pixels have an alpha value of 1.0.
  27.      */
  28.     public final static int OPAQUE            = 1;
  29.  
  30.     /**
  31.      * Represents image data that is guaranteed to be either completely
  32.      * opaque, with an alpha value of 1.0, or completely transparent,
  33.      * with an alpha value of 0.0.
  34.      */
  35.     public final static int BITMASK = 2;
  36.  
  37.     /**
  38.      * Represents image data that contains or might contain arbitrary
  39.      * alpha values between and including 0.0 and 1.0.
  40.      */
  41.     public final static int TRANSLUCENT        = 3;
  42.  
  43.     /**
  44.      * Returns the type of this <code>Transparency</code>.
  45.      * @return the field type of this <code>Transparency</code>, which is
  46.      *        either OPAQUE, BITMASK or TRANSLUCENT. 
  47.      */
  48.     public int getTransparency();
  49. }
  50.